package edu.hunan.cxb18.orm.pojo;

import java.util.List;

/**
 * @author chenheng
 * @create 2020-03-04 13:43
 */
public class Course {
    public Course(Integer id, String coursename, Integer totalscore,  List<Score> scores) {
        this.id = id;
        this.coursename = coursename;
        this.totalscore = totalscore;
        this.scores = scores;
    }

    private Integer id;
    private String coursename;
    private Integer totalscore;
    private List<Score> scores;

    public Course(Integer id, String coursename, Integer totalscore) {
        this.id = id;
        this.coursename = coursename;
        this.totalscore = totalscore;
    }

    @Override
    public String toString() {
        return "Course{" +
                "id=" + id +
                ", coursename='" + coursename + '\'' +
                ", totalscore=" + totalscore +
                ", scores=" + scores +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCoursename() {
        return coursename;
    }

    public void setCoursename(String coursename) {
        this.coursename = coursename;
    }

    public Integer getTotalscore() {
        return totalscore;
    }

    public void setTotalscore(Integer totalscore) {
        this.totalscore = totalscore;
    }

    public List<Score> getScores() {
        return scores;
    }

    public void setScores(List<Score> scores) {
        this.scores = scores;
    }

    public Course(String coursename, Integer totalscore) {
        this.coursename = coursename;
        this.totalscore = totalscore;
    }
}
